﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Admin.SystemSettings.Control.Ajax.Menu
{
    public partial class check_menu_child : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public int check_child()
        {
            int check = 0;
            int id = int.Parse(Request.QueryString["id"]);
            var get_child = new TblAdminMenuController().FetchAll().Where(x => x.AmParentID == id);
            if (get_child.ToList().Count != 0)
                check = 1;
            return check;
        }
    }
}